<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Input and Button Page</title>
    <style>
        body {
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            height: 100vh;
            margin: 0;
            background-color: #f0f0f0;
        }
        input, button {
            padding: 10px;
            margin: 10px;
            border: none;
            border-radius: 5px;
        }
        input {
            width: 300px;
            font-size: 16px;
        }
        button {
            background-color: #007BFF;
            color: white;
            cursor: pointer;
            font-size: 16px;
        }
        button:hover {
            background-color: #0056b3;
        }
    </style>
</head>
<body>
    <input type="text" id="inputField" placeholder="请输入内容">
    <button id="generateButton">生成</button>
    <script>
        // 可以在这里添加 JavaScript 代码，为按钮添加点击事件等功能
        document.getElementById('generateButton').onclick = function() {
            var inputValue = document.getElementById('inputField').value;
            location.href = "index.html?name="+inputValue
            // 在此处添加你想要执行的生成逻辑，例如将输入的内容发送到服务器，或者进行其他处理
        };
    </script>
</body>
</html>